package com.xyht.sca_s.student_manage_system.modules.news.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author XYHT
 * @since 2022-12-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sms_news")
@ApiModel(value="SmsNews对象", description="新闻模块")
public class SmsNews implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty(value = "新闻主题	")
    private String newsTopic;

    @ApiModelProperty(value = "事件类型:0:重要;1:普通.")
    private String eventType;

    @ApiModelProperty(value = "新闻类型:0:学校要闻;1:学院动态;2:部门动态;3:媒体理工;4:学术动态.")
    private String newsType;

    @ApiModelProperty(value = "新闻内容")
    private String newsContent;

    @ApiModelProperty(value = "发布时间")
    private Date startTime;

    @ApiModelProperty(value = "截止时间")
    private Date endTime;

    @ApiModelProperty(value = "状态:  0: 过期;1有效")
    private String state;

    @ApiModelProperty(value = "新闻发布人")
    private String newsId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "是否已读:0:否;1:是")
    private String isRead;

    @ApiModelProperty(value = "封面图")
    private String cover;

    @ApiModelProperty(value = "收藏")
    private Integer collect;

    @ApiModelProperty(value = "点赞")
    private Integer likes;
}
